var fmsUtil, $;
layui.use(['form', 'fms_util', 'cookie', 'base64'], function () {
    var form = layui.form,
        layer = layui.layer,
        cookie = layui.cookie;

    fmsUtil = layui.fms_util;
    $ = layui.jquery;

    var base64 = layui.base64;
    $("#from_submit").validationEngine({showOneMessage: true, promptPosition: 'topLeft'});

    User.config({jquery: $,fmsUtil: fmsUtil, base64: base64});

    //登录
    form.on("submit(login)", function (data) {
        $.removeCookie("MaxParentUserId")
        var validateFlag = $("#from_submit").validationEngine("validate");
        if (validateFlag) {
            var where = new Object();
            where["account"] = data.field.userName;
            where["password"] = data.field.password;
            fmsUtil.replaceHref(pathUrl+"/main.html")
        }
     });







    // User.method().isLogin();

    // >= 1366的适应
    if (screen.width >= 1366) {
        $(".logo").css({left: '10%'})
    }
});